package com.hkts.naturalgas.performance.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.naturalgas.performance.entity.HkFormEntity;
import com.hkts.naturalgas.performance.performanceVo.EntityByFlowInstanceIdDataVo;
import com.hkts.naturalgas.performance.performanceVo.FormAndItemResultVo;
import com.hkts.naturalgas.performance.performanceVo.FormAndItemsVo;
import com.hkts.naturalgas.performance.performanceVo.IndexAndFormIdVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yck
 * @since 2020-12-22
 */
public interface IHkFormEntityService extends IService<HkFormEntity> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hkFormEntity
     * @return
     */
    IPage<HkFormEntity> selectPage(Page<HkFormEntity> page, HkFormEntity hkFormEntity);

    List<HkFormEntity> selectList(HkFormEntity hkFormEntity);

    List<FormAndItemResultVo> getFormEntityByUserId(String userId) throws Exception;

    List<FormAndItemResultVo> getFormEntityByProessId(String proessId);

    EntityByFlowInstanceIdDataVo getFormEntityByFlowInstanceId(String templateId);

    EntityByFlowInstanceIdDataVo selectFormEntityByflowIdAndPostId(String postId,String flowId,String templateVersion);



}